<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2018 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Author: Dean <zxxjjforever@163.com>
// +----------------------------------------------------------------------
return [
    'alipay_account'                 => [// 在后台插件配置表单中的键名 ,会是config[text]
        'title'   => 'alipay_account', // 表单的label标题
        'type'    => 'text',// 表单的类型：text,password,textarea,checkbox,radio,select等
        'value'   => '',// 表单的默认值
        "rule"    => [
            "require" => true
        ],
        "message" => [
            "require" => 'alipay_account不能为空'
        ],
        'tip'     => '支付宝帐户' //表单的帮助提示
    ],
    'alipay_key'                 => [// 在后台插件配置表单中的键名 ,会是config[password]
        'title'   => 'alipay_key',
        'type'    => 'text',
        'value'   => '',
        "rule"    => [
            "require" => true
        ],
        "message" => [
            "require" => 'alipay_key不能为空'
        ],
        'tip'     => '交易安全校验码'
    ],
    'alipay_partner'                 => [// 在后台插件配置表单中的键名 ,会是config[password]
        'title'   => 'alipay_partner',
        'type'    => 'text',
        'value'   => '',
        "rule"    => [
            "require" => true
        ],
        "message" => [
            "require" => 'alipay_partner不能为空'
        ],
        'tip'     => '合作者身份ID'
    ],
    'alipay_private_key'                 => [// 在后台插件配置表单中的键名 ,会是config[password]
        'title'   => 'alipay_private_key',
        'type'    => 'text',
        'value'   => '',
        "rule"    => [
            "require" => true
        ],
        "message" => [
            "require" => 'alipay_private_key不能为空'
        ],
        'tip'     => '秘钥'
    ],
    'alipay_pay_method'                  => [// 在后台插件配置表单中的键名 ,会是config[select]
        'title'   => '选择接口类型',
        'type'    => 'select',
        'options' => [//select 和radio,checkbox的子选项
            '1' =>  '使用担保交易接口',
            '2' => '使用即时到帐交易接口',
        ],
        'value'   => '1',
        "rule"    => [
            "require" => true
        ],
        "message" => [
            "require" => '接口类型不能为空'
        ],
        'tip'     => '选择接口类型'
    ],
    'is_bank'                  => [// 在后台插件配置表单中的键名 ,会是config[select]
        'title'   => '是否开通网银',
        'type'    => 'select',
        'options' => [//select 和radio,checkbox的子选项
            '1' =>  '否',
            '2' => '是',
        ],
        'value'   => '1',
        "rule"    => [
            "require" => true
        ],
        "message" => [
            "require" => '开通网银不能为空'
        ],
        'tip'     => '是否开通网银'
    ],
];
